/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.OrderItem;
import com.yami.shop.bean.param.PayTopParam;
import com.yami.shop.bean.param.ProdAnalysisSurveyParam;
import com.yami.shop.common.util.PageParam;

import java.util.Date;
import java.util.List;

/**
 * @author lgh on 2018/09/15.
 */
public interface OrderItemService extends IService<OrderItem> {

    List<OrderItem> getOrderItemsByOrderNumber(String orderNumber, Integer lang);

    IPage<PayTopParam> getPayAmounts(PageParam<OrderItem> page, ProdAnalysisSurveyParam param, Integer dbLang);

    Integer getPayPersonNumByParam(Integer prodId,Long shopId ,Date startTime,Date endTime);

    void insertBatchOrderItem(List<OrderItem> orderItems);

//    List<OrderItem> getUnCloseRefundOrderItemByOrderNumber(String orderNumber);
}
